<?php
/**
 * Patient Signal details view page 1. Used in view action in PatientSignalController.
 *
 * @package   views
 * @subpackage patientSignal
 * @since     1.0
 * @filesource
 */
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
			'label'=>'Organization',
			'type'=>'raw',
			'value'=>Yii::app()->user->name=='admin'
				?CHtml::link($model->organization->name,
					array('organization/update','id'=>$model->organizationId),
					array('class'=>'icon icon-zoom'))
				:$model->organization->name,
		),
		array(
			'label'=>'Upload User',
			'type'=>'raw',
			'value'=>Yii::app()->user->name=='admin'
				?CHtml::link($model->user->username,
					array('user/update','id'=>$model->userId),
					array('class'=>'icon icon-zoom'))
				:$model->user->getFullName(),
		),
		array(
			'label'=>'Status',
			'value'=>$model->getReadableStatus(),
		),
		'createDate',
	),
));